package com.albert.java8lambda;

import java.util.function.Consumer;

public class TestConsumer {
    public static void generateX(Consumer<String> consumer){
        consumer.accept("这个参数有什么用，consumer使用场景是啥");
    }
    public static void main(String[] args) {
        generateX((a) ->{
            System.out.println(a);
        });
    }
}
